# Python startswith()和endswith()方法
## startswith()方法
str = "c.bianchent.net"
print("str =", str)
print("str.startsWith('c') =", str.startswith("c"))
print("str.startswith('http') =", str.startswith("http"))
print("str.startswith('b', 2) =", str.startswith("b", 2))
print()

## endswith()方法
print("str.endswith('net') =", str.endswith("net"))
